package com.ruoyi.crm.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.crm.mapper.CrmFeeApplyDetailsMapper;
import com.ruoyi.crm.domain.CrmFeeApplyDetails;
import com.ruoyi.crm.service.ICrmFeeApplyDetailsService;

/**
 * 费用申请明细详情Service业务层处理
 *
 * @author yanwenliang
 * @date 2024-10-31
 */
@Service
public class CrmFeeApplyDetailsServiceImpl extends ServiceImpl<CrmFeeApplyDetailsMapper, CrmFeeApplyDetails> implements ICrmFeeApplyDetailsService
{
    @Autowired
    private CrmFeeApplyDetailsMapper crmFeeApplyDetailsMapper;

    /**
     * 查询费用申请明细详情
     *
     * @param applyDetailsId 费用申请明细详情主键
     * @return 费用申请明细详情
     */
    @Override
    public CrmFeeApplyDetails selectCrmFeeApplyDetailsByApplyDetailsId(String applyDetailsId)
    {
        return crmFeeApplyDetailsMapper.selectCrmFeeApplyDetailsByApplyDetailsId(applyDetailsId);
    }

    /**
     * 查询费用申请明细详情列表
     *
     * @param crmFeeApplyDetails 费用申请明细详情
     * @return 费用申请明细详情
     */
    @Override
    public List<CrmFeeApplyDetails> selectCrmFeeApplyDetailsList(CrmFeeApplyDetails crmFeeApplyDetails)
    {
        return crmFeeApplyDetailsMapper.selectCrmFeeApplyDetailsList(crmFeeApplyDetails);
    }

    /**
     * 新增费用申请明细详情
     *
     * @param crmFeeApplyDetails 费用申请明细详情
     * @return 结果
     */
    @Override
    public int insertCrmFeeApplyDetails(CrmFeeApplyDetails crmFeeApplyDetails)
    {
        return crmFeeApplyDetailsMapper.insertCrmFeeApplyDetails(crmFeeApplyDetails);
    }

    /**
     * 修改费用申请明细详情
     *
     * @param crmFeeApplyDetails 费用申请明细详情
     * @return 结果
     */
    @Override
    public int updateCrmFeeApplyDetails(CrmFeeApplyDetails crmFeeApplyDetails)
    {
        return crmFeeApplyDetailsMapper.updateCrmFeeApplyDetails(crmFeeApplyDetails);
    }

    /**
     * 批量删除费用申请明细详情
     *
     * @param applyDetailsIds 需要删除的费用申请明细详情主键
     * @return 结果
     */
    @Override
    public int deleteCrmFeeApplyDetailsByApplyDetailsIds(String[] applyDetailsIds)
    {
        return crmFeeApplyDetailsMapper.deleteCrmFeeApplyDetailsByApplyDetailsIds(applyDetailsIds);
    }

    /**
     * 删除费用申请明细详情信息
     *
     * @param applyDetailsId 费用申请明细详情主键
     * @return 结果
     */
    @Override
    public int deleteCrmFeeApplyDetailsByApplyDetailsId(String applyDetailsId)
    {
        return crmFeeApplyDetailsMapper.deleteCrmFeeApplyDetailsByApplyDetailsId(applyDetailsId);
    }
}
